package com.bootdo.wx.dao;

import com.bootdo.wx.domain.MemberScoreDO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 积分记录
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-07-25 14:40:20
 */
@Mapper
public interface MemberScoreDao {

	MemberScoreDO get(String id);
	
	List<MemberScoreDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(MemberScoreDO memberScore);
	
	int update(MemberScoreDO memberScore);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	List<Map<String,Object>> getMemberScoreList(Map<String, Object> map);

	BigDecimal getSumByUser(Map<String, Object> map);

	List<Map<String,Object>> getScoreList(Map<String, Object> map);

	int getScoreListCount(Map<String, Object> map);
}
